package com.example.demo.behavior.mediator;

import lombok.AllArgsConstructor;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
public class Buyer extends Customer {

    public Buyer(String name) {
        super.setName(name);
    }

    @Override
    void send(String msg) {
        System.out.println("买方" + super.getName() + ":" + msg);
    }

    @Override
    void receive(String from, String msg) {
        System.out.println("买方收到消息-卖方" + from + ":" + msg);
    }
}
